package view.mediator.monster
{
	import flash.system.System;
	
	import org.robotlegs.mvcs.StarlingMediator;
	
	import view.component.monster.MonsterView;
	
	
	/**
	 * MonsterView界面中介
	 * @author £iang
	 * 
	 */	
	public class MonsterViewMediator extends StarlingMediator
	{
		//-----------------------------
		// variables
		//-----------------------------
		
		/** MonsterView界面 */
		[Inject]
		public var monsterView:MonsterView;
		
		//-----------------------------
		// properties
		//-----------------------------
		
		//-----------------------------
		// setter&getter
		//-----------------------------
		
		//-----------------------------
		// methods
		//-----------------------------
		
		//-----------------------------
		// events
		//-----------------------------
		
		//-----------------------------
		// dispose
		//-----------------------------
		
		/**
		 * 移除函数 
		 * 
		 */		
		override public function onRemove():void
		{
			monsterView.clearNavi();
			System.gc();
			super.onRemove();
		}
		
		//-----------------------------
		// construction
		//-----------------------------
		
		/**
		 * 构造函数
		 *
		 */
		public function MonsterViewMediator()
		{
			super();
		}
	}
}